<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

fconv::init( );

/**
 * Include the {@link modifier.make_timestamp.php} plugin
 */
require_once $smarty->_get_plugin_filepath( 'modifier', 'number_format' );

/**
 * Smarty area_format modifier plugin for commercial.su
 *
 * Type:     modifier<br>
 * Name:     area_format<br>
 * Purpose:  format areas via fconv<br>
 * Input:<br>
 *         - value: area value
 *         - src: source type (can be 1 for metric or 2 for british-american [foots/yards])
 *         - dest: destination type (see $src)
 * @author   Alex <qfox@ya.ru> Yaroshevich
 * @param numeric
 * @return string|void
 * @uses fconv
 */
function smarty_modifier_area_format( $value, $src = null, $dest = null)
{
	return smarty_modifier_number_format( fconv::area( $value, $src, $dest ) );
}

/* vim: set expandtab: */

?>
